package cn.test.entity;

import cn.test.annotation.NeedSetValue;
import cn.test.mapper.UserMapper;

public class Order {

    private Integer id;

    private String name;

    private Integer customerId;

    // 使用注解定义在参数上
    @NeedSetValue(beanClass = UserMapper.class, params = "customerId", method = "getUserById",targetFiled = "name")
    private String customerName;

}
